package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcFgjgMapper;
import com.ruoyi.jhc.domain.JhcFgjg;
import com.ruoyi.jhc.service.IJhcFgjgService;

/**
 * 废钢加工进耗存录入Service业务层处理
 * 
 * @author key
 * @date 2022-09-29
 */
@Service
public class JhcFgjgServiceImpl implements IJhcFgjgService 
{
    @Autowired
    private JhcFgjgMapper jhcFgjgMapper;

    /**
     * 查询废钢加工进耗存录入
     * 
     * @param cDate 废钢加工进耗存录入主键
     * @return 废钢加工进耗存录入
     */
    @Override
    public JhcFgjg selectJhcFgjgByCDate(String cDate)
    {
        return jhcFgjgMapper.selectJhcFgjgByCDate(cDate);
    }

    /**
     * 查询废钢加工进耗存录入列表
     * 
     * @param jhcFgjg 废钢加工进耗存录入
     * @return 废钢加工进耗存录入
     */
    @Override
    public List<JhcFgjg> selectJhcFgjgList(JhcFgjg jhcFgjg)
    {
        return jhcFgjgMapper.selectJhcFgjgList(jhcFgjg);
    }

    /**
     * 新增废钢加工进耗存录入
     * 
     * @param jhcFgjg 废钢加工进耗存录入
     * @return 结果
     */
    @Override
    public int insertJhcFgjg(JhcFgjg jhcFgjg)
    {
        return jhcFgjgMapper.insertJhcFgjg(jhcFgjg);
    }

    /**
     * 修改废钢加工进耗存录入
     * 
     * @param jhcFgjg 废钢加工进耗存录入
     * @return 结果
     */
    @Override
    public int updateJhcFgjg(JhcFgjg jhcFgjg)
    {
        return jhcFgjgMapper.updateJhcFgjg(jhcFgjg);
    }

    /**
     * 批量删除废钢加工进耗存录入
     * 
     * @param cDates 需要删除的废钢加工进耗存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcFgjgByCDates(String[] cDates)
    {
        return jhcFgjgMapper.deleteJhcFgjgByCDates(cDates);
    }

    /**
     * 删除废钢加工进耗存录入信息
     * 
     * @param cDate 废钢加工进耗存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcFgjgByCDate(String cDate)
    {
        return jhcFgjgMapper.deleteJhcFgjgByCDate(cDate);
    }
}
